package com.cowain.api.commons;

/**
 * @Author fxw
 * @Date 2022/5/12 20:32
 * 响应的结果
 */
public class ResponseResult<T> {
    /**
     * 响应的状态码
     */
    String resultCode;
    /**
     * 响应的信息
     */
    String resultMes;
    /**
     * 响应的具体的结果
     */
    T result;


    public ResponseResult(String resultCode ) {
        this.resultCode = resultCode;
    }

    public ResponseResult(String resultCode, String resultMes ) {
        this.resultCode = resultCode;
        this.resultMes = resultMes;
    }
    public ResponseResult(String resultCode, String resultMes, T result) {
        this.resultCode = resultCode;
        this.resultMes = resultMes;
        this.result = result;
    }
    public ResponseResult(String resultCode, T result) {
        this.resultCode = resultCode;
        this.result = result;
    }
    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMes() {
        return resultMes;
    }

    public void setResultMes(String resultMes) {
        this.resultMes = resultMes;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
